<@user.user_html>
    
    <div class="clear"></div>
	

    <div class="swarp">
    	<#-- 嵌入导航-->
		<#include "/WEB-INF/content/include/user/app.ftl">
        <div class="srightwarp">
        	<div class="xwarp" style=" margin:0px; width:750px; overflow:hidden;">
            	<div class="xtitle">
                    <div class="clear"></div>
                </div>
                <div class="xbody sbody" style=" width:748px; margin:0px; padding:20px 0px;">

                    <div class="clear"></div>
                
					<div class="xbody sbody" style=" width:748px; margin:0px; padding:20px 0px;" id="message_list">
							<#if commentPage??>
								<#list commentPage.result as comment>
				            		<div class="secretBox">
				                    	<div class="secretLeft">
				                        	<div>${(comment.content)!}</div>
				                            <h3></h3>
				                        </div>
				                        <div class="secretRight">
				                        	<div class="secretImg">
				                            	<em>${(comment.createDate?string('MM/dd'))!}</em> 
				                            </div>
				                            <div class="secretBtn">
				                            	<a href="#" onClick="delMessage(${(comment.id?c)!},${(aid?c)!})">删除</a>
				                            </div>
				                        </div>
				                        <div class="clear"></div>
				                    </div>
								</#list>
							</#if>
						<@user.pagination_user div="message_list" />	
                    	<div class="clear"></div>
            		</div>

            	</div>
            </div>
        </div>
        <div class="clear"></div>
    </div>
<script type="text/javascript">
	function delMessage(id,aid){
		if(window.confirm("你确认删除这条评论？该操作无法撤销.")){
			window.location.href="${base}/user/show/comment/index!remove?id=" + id+"&aid="+aid;
		}
	}
</script>
</@user.user_html>


